/*-- Chart --*/
.bb {
	svg {
		font: 10px sans-serif;
		-webkit-tap-highlight-color: rgba(0,0,0,0);
	}

	path, line {
		fill: none;
		stroke: #000;
	}

	text, .bb-button {
		-webkit-user-select: none;
		-moz-user-select: none;
		user-select: none;
	}
}

.bb-legend-item-tile,
.bb-xgrid-focus,
.bb-ygrid-focus,
.bb-ygrid {
	shape-rendering: crispEdges;
}

.bb-chart-arcs {
	.bb-needle {
		fill: #000;
	}
}

.bb-chart-arc {
	.bb-gauge-value {
		fill: #000;
	}

	path {
		stroke: #fff;
	}

	rect {
		stroke: #fff;
		stroke-width: 1;
	}

	text {
		fill: #fff;
		font-size: 13px;
	}
}

/*-- Funnel --*/
.bb-chart-funnels {
	path {
		stroke-width: 0;
	}

	+ .bb-chart-texts text {
		font-size: 13px;
		fill: #fff;
	}
}

/*-- Axis --*/
.bb-axis {
	shape-rendering: crispEdges;

	.bb-axis-x-tooltip, .bb-axis-y-tooltip, .bb-axis-y2-tooltip {
		font-size: 1em;
		fill: #fff;
		white-space: nowrap;
	}
}

/*-- Grid --*/
.bb-grid {
	pointer-events: none;

	line {
		stroke: #aaa;
	}

	text {
		fill: #aaa;
	}
}

.bb-xgrid, .bb-ygrid {
	stroke-dasharray: 3 3;
}

/*-- Text on Chart --*/
.bb-text {
	&.bb-empty {
		fill: #808080;
		font-size: 2em;
	}
}

/*-- Line --*/
.bb-line {
	stroke-width: 1px;
}

/*-- Point --*/
.bb-circle._expanded_ {
	stroke-width: 1px;
	stroke: white;
}

.bb-selected-circle {
	fill: white;
	stroke-width: 2px;
}

/*-- Bar --*/
.bb-bar {
	stroke-width: 0;

	&._expanded_ {
		fill-opacity: 0.75;
	}
}

/*-- Candlestick --*/
.bb-candlestick {
	stroke-width: 1px;

	&._expanded_ {
		fill-opacity: 0.75;
	}
}

/*-- Focus --*/
.bb-target, .bb-circles {
	&.bb-focused {
		opacity: 1;
	}

	&.bb-focused {
		path.bb-line, path.bb-step {
			stroke-width: 2px;
		}
	}

	&.bb-defocused {
		opacity: 0.3 !important;

		.text-overlapping {
			opacity: .05 !important;
		}
	}
}
/*-- Region --*/
.bb-region {
	fill: steelblue;

	rect {
		fill-opacity: .1;
	}
}

/*-- Zoom region --*/
.bb-zoom-brush {
	fill-opacity: .1;
}

/*-- Brush --*/
.bb-brush .extent {
	fill-opacity: .1;
}

/*-- Legend --*/
.bb-legend-item {
	font-size: 12px;
	user-select: none;
}

.bb-legend-item-hidden {
	opacity: 0.15;
}

.bb-legend-background {
	opacity: 0.75;
	fill: white;
	stroke: lightgray;
	stroke-width: 1;
}

/*-- Title --*/
.bb-title {
	font: 14px sans-serif;
}

/*-- Treemap --*/
.bb-chart-treemaps rect {
    stroke: #fff;
    stroke-width: 1px;
}

/*-- Tooltip --*/
.bb-tooltip-container {
	z-index: 10;
	user-select: none;
	transform: translateZ(0);
}

.bb-tooltip {
	border-collapse:collapse;
	border-spacing:0;
	background-color:#fff;
	empty-cells:show;
	opacity: 0.9;
	box-shadow: 7px 7px 12px -9px rgb(119,119,119);
	white-space: nowrap;

	tr {
		border:1px solid #CCC;
	}

	th {
		background-color: #aaa;
		font-size:14px;
		padding:2px 5px;
		text-align:left;
		color:#FFF;
	}

	td {
		font-size:13px;
		padding: 3px 6px;
		background-color:#fff;
		border-left:1px dotted #999;

		> span, > svg {
			display: inline-block;
			width: 10px;
			height: 10px;
			margin-right: 6px;
		}
	}

	&.value {
		text-align: right;
	}
}

/*-- Area --*/
.bb-area {
	stroke-width: 0;
	opacity: 0.2;
}

/*-- Arc --*/
.bb-chart-arcs-title {
	dominant-baseline: middle;
	font-size: 1.3em;
}

text.bb-chart-arcs-gauge-title {
	dominant-baseline: middle;
	font-size: 2.7em;
}

.bb-chart-arcs {
	.bb-chart-arcs-background {
		fill: #e0e0e0;
		stroke: #fff;
	}

	.bb-chart-arcs-gauge-unit {
		fill: #000;
		font-size: 16px;
	}

	.bb-chart-arcs-gauge-max {
		fill: #777;
	}

	.bb-chart-arcs-gauge-min {
		fill: #777;
	}

	/*-- Polar --*/
	.bb-levels {
		circle {
			fill: none;
			stroke: #848282;
			stroke-width: .5px;
		}

		text {
			fill: #848282;
		}
	}
}

/*-- Radar --*/
.bb-chart-radars {
	.bb-levels {
		polygon {
			fill: none;
			stroke: #848282;
			stroke-width: .5px;
		}

		text {
			fill: #848282;
		}
	}

	.bb-axis {
		line {
			stroke: #848282;
			stroke-width: .5px;
		}

		text {
			font-size: 1.15em;
			cursor: default;
		}
	}

	.bb-shapes {
		polygon {
			fill-opacity: .2;
			stroke-width: 1px;
		}
	}
}

/*-- Button --*/
.bb-button {
	position: absolute;
	top: 10px;
	right: 10px;

	.bb-zoom-reset {
		font-size: 11px;
		border: solid 1px #ccc;
		background-color: #fff;
		padding: 5px;
		border-radius: 5px;
		cursor: pointer;
	}
}
